export const entityScript = {
  special: (btnEvent, row) => {
    if (btnEvent === 5) {
      this.invalid
    } else if (btnEvent === 7) {
      this.quit
    }
    if (btnEvent === 'report') {
      this.report(row)
    }
  },
  report: (row) => {
    if (row === null) {
      this.$message({
        type: 'warning',
        message: '请选择需要修改的行!'
      })
    }
  },
  invalid: (row) => {
    alert(row + '此行已作废')
  },
  quit: () => {
    alert('我已退出')
  }

}
